<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<table class="table student">
	<thead>
		<tr>
			<th colspan="6">
				<h1>${student.name}-学员档案</h1>
				<p>
					<s:if test="consultStarred">
						<s:url namespace="/consult" action="doStarredConsult" id="doStarredConsult">
							<s:param name="id" value="#student.id" />
						</s:url>
						<a href="${doUnStarredConsult}" title="取消咨询关注该学员" class="ajax">
							<i class="icon-star"></i>
						</a>
					</s:if>
					<s:else>
						<s:url namespace="/consult" action="doStarredConsult" id="doStarredConsult">
							<s:param name="id" value="#student.id" />
						</s:url>
						<a href="${doStarredConsult}" title="咨询关注该学员" class="ajax">
							<i class="icon-star-empty"></i>
						</a>
					</s:else>
					<s:url namespace="/school" action="selectConsultor" id="selectConsultor">
					</s:url>
					<s:url namespace="/school" action="selectTutor" id="selectTutor">
					</s:url>
					<span> <strong> <a class="frame" href="${selectConsultor}" id="${student.id}">课程顾问</a>：
					</strong> <s:url action="viewUser" namespace="/security/user" id="viewUser">
							<s:param name="id" value="#student.consultor.id"></s:param>
						</s:url> <a href="${viewUser}"> ${student.consultor.name }</a>
					</span>，

					<s:url action="viewUser" namespace="/security/user" id="viewUser">
						<s:param name="id" value="#student.consultor.id"></s:param>
					</s:url>
					<span> <strong><a class="frame" href="${selectTutor}" id="${student.id}">学习顾问</a> ：</strong> <a href="${viewUser}">${student.tutor.name }</a>
					</span>
				</p>
			</th>
		</tr>
	</thead>
	<tbody>
		<tr>
			<th class="span2">内部编号</th>
			<td class="span2">${student.no}</td>
			<th class="span2">学员编号</th>
			<td class="span2">${student.stuId}</td>
			<th class="span2">姓名</th>
			<td class="span2">${student.name}</td>
		</tr>
		<tr>
			<th>性别</th>
			<td><s:property value="#student.sex" /></td>
			<th>年龄</th>
			<td><s:if test="#student.age != 0">${student.age}</s:if></td>
			<th>职业</th>
			<td>${student.job}</td>
		</tr>
		<tr>
			<th>移动电话</th>
			<td><s:property value="showMobielNumber(#student)" /></td>
			<th>固定电话</th>
			<td><s:property value="showPhoneNumber(#student)" /></td>
			<th>详细地址</th>
			<td><s:property value="showAddress(#student)" /></td>
		</tr>
		<tr>
			<th>邮编</th>
			<td>${student.zip}</td>
			<th>教育程度</th>
			<td>${student.education}</td>
			<th>电子邮件</th>
			<td>${student.email}</td>
		</tr>
		<tr>
			<th>备注</th>
			<td colspan="5"><s:property value="#student.title" /></td>
		</tr>
	</tbody>
</table>
